import layout from '@/components/layout/index.vue'

export default [
  {
    path: '/',
    name: 'Home',
    redirect: '/home',
    component: layout,
    meta: {
        title: '首页',
        noCache: true,
        hideInMenu: true,
    },
    children: [
        {
            path: 'home',
            name: 'home',
            component: () => import(/* webpackChunkName: "home" */ '@/views/home/index.vue'),
            meta: {
                title: '首页展示',
                noCache: true,
                access: ['admin'],
            },
        },
    ],
  },
  {
    path: '/demo',
    name: 'demo',
    component: () => import(/* webpackChunkName: "demo" */ '@/views/demo/index.vue'),
  },
]
